 /*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package project.jpdftools.ui.logic;

import com.itextpdf.text.Document;
import project.jpdfexport.constants.JPDFConst.ALIGNMENT;
import project.jpdfexport.jpdf.PDFImage;

/**
 *
 * @author Mido
 */
public class JPDFImage extends JPDF {

    private int imageAlignment;
    private String imagePath;

    public JPDFImage() {
        // default values
        this.imageAlignment = ALIGNMENT.center;
    }

    public void export(Document document) {
        PDFImage.addImage(document, imagePath, imageAlignment);
    }

    public void createUI() {
    }

    public int getImageAlignment() {
        return imageAlignment;
    }

    public void setImageAlignment(int image_alignment) {
        this.imageAlignment = image_alignment;
    }

    public String getImagePath() {
        return imagePath;
    }

    public void setImagePath(String image_path) {
        this.imagePath = image_path;
    }
}
